package com.freemarker.vo;

import java.util.ArrayList;
import java.util.List;

import com.freemarker.db.StringUtil;

public class TableEntity {

	/** 表的名称 */
	private String tableName;
	/** 表的备注 */
	private String tableComment;
	/** 类名(第一个字母大写)，如：sys_user = StringUtil.trim(> SysUser */
	private String className;
	/** 类名(第一个字母小写)，如：sys_user = StringUtil.trim(> sysUser */
	private String classname;
	/** 表的主键 */
	private ColumnEntity pk;
	/** 表的列名(不包含主键) */
	private List<ColumnEntity> columnList = new ArrayList<ColumnEntity>();

	private String bussPackage;

	private String entityPackage;

	public TableEntity() {

	}

	public String getTableName() {
		return StringUtil.trim(tableName);
	}

	public void setTableName(String tableName) {
		this.tableName = StringUtil.trim(tableName);
	}

	public String getTableComment() {
		return StringUtil.trim(tableComment);
	}

	public void setTableComment(String tableComment) {
		this.tableComment = StringUtil.trim(tableComment);
	}

	public String getClassName() {
		return StringUtil.trim(className);
	}

	public void setClassName(String className) {
		this.className = StringUtil.trim(className);
	}

	public String getClassname() {
		return StringUtil.trim(classname);
	}

	public void setClassname(String classname) {
		this.classname = StringUtil.trim(classname);
	}

	public ColumnEntity getPk() {
		return pk;
	}

	public void setPk(ColumnEntity pk) {
		this.pk = pk;
	}

	public List<ColumnEntity> getColumnList() {
		return columnList;
	}

	public void setColumnList(List<ColumnEntity> columnList) {
		this.columnList = columnList;
	}

	public String getBussPackage() {
		return StringUtil.trim(bussPackage);
	}

	public void setBussPackage(String bussPackage) {
		this.bussPackage = StringUtil.trim(bussPackage);
	}

	public String getEntityPackage() {
		return StringUtil.trim(entityPackage);
	}

	public void setEntityPackage(String entityPackage) {
		this.entityPackage = StringUtil.trim(entityPackage);
	}

	@Override
	public String toString() {
		return "TableEntity [tableName=" + tableName + ", tableComment=" + tableComment + ", className=" + className + ", classname=" + classname + ", pk="
				+ pk + ", columnList=" + columnList + ", bussPackage=" + bussPackage + ", entityPackage=" + entityPackage + ", getTableName()="
				+ getTableName() + ", getTableComment()=" + getTableComment() + ", getClassName()=" + getClassName() + ", getClassname()=" + getClassname()
				+ ", getPk()=" + getPk() + ", getColumnList()=" + getColumnList() + ", getBussPackage()=" + getBussPackage() + ", getEntityPackage()="
				+ getEntityPackage() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
	}

}